<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"><HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=ISO-8859-1">
<META HTTP-EQUIV="Content-Style-Type" CONTENT="text/css">
<META NAME="GENERATOR" CONTENT="Adobe FrameMaker 7.0/HTML Export Filter">
<LINK REL="STYLESHEET" HREF="KDM_1.0_14_microKDM.css" CHARSET="ISO-8859-1" TYPE="text/css">
<TITLE> 14	Micro KDM</TITLE>
</HEAD>
<BODY BGCOLOR="#ffffff">
<DIV>
<H6 CLASS="Heading">
<A NAME="pgfId-1096814"></A>Micro KDM</H6>
<P CLASS="Body">
<A NAME="pgfId-1096816"></A>This chapter describes the foundation for KDM models with precise semantics, referred to as the L1 MICRO KDM compliance point (&quot;micro KDM&quot;).</P>
<P CLASS="Body">
<A NAME="pgfId-1096817"></A>Let's use the term KDM &quot;macro Action&quot; to refer to an ActionElement with under specified semantics, whose role in a KDM meta-model is to represent certain existing behavior corresponding to one or more statements in the existing software system. The term &quot;macro action&quot; should not be confused with the preprocessor directives common to certain programming languages. </P>
<P CLASS="Body">
<A NAME="pgfId-1096818"></A>A KDM &quot;macro action&quot; represents the endpoint of the action relationships, and can own a SourceRef element, which links it to the artifacts of the existing software system. KDM L0 compliance point does not specify the semantics of a KDM &quot;macro action&quot; leaving it u to implementers to design the mapping from the programming languages involved in the artifacts of the existing software systems and KDM. </P>
<P CLASS="Body">
<A NAME="pgfId-1096820"></A>In order to use the KDM Program Element layer for control- and data-flow analysis applications, as well as for providing more precision for the Resource Layer and the abstraction Layer, additional semantics constraints are required to coordinate producers and consumers of KDM models. The micro KDM compliance point serves this purpose. It constrains the granularity of the leaf action elements, and their meaning by providing the set of micro actions with predefined semantics. </P>
<P CLASS="Body">
<A NAME="pgfId-1096822"></A>According to the &quot;micro KDM&quot; approach, the original &quot;macro action&quot; is treated as a container that owns certain &quot;micro actions&quot; with predefined semantics and thus precise semantics of the &quot;macro action&quot; is defined. As the result micro KDM constrains the patterns of how to map the statements of the existing system as determined by the programming language into KDM. This is similar to the mapping performed by a compiler into the Java Virtual Machine or Microsoft .NET. </P>
<P CLASS="Body">
<A NAME="pgfId-1096823"></A>From a compiler technology perspective, KDM micro actions provide the so-called Intermediate Representation (IR) for control and data flow analysis. Micro KDM is a rather high-level IR. Micro KDM actions are aligned with the ISO 11404 datatypes (operations on primitive datatypes and access to complex datatypes) as well as with the KDM patterns for representing program elements.</P>
<P CLASS="Body">
<A NAME="pgfId-1096825"></A>Separation into a &quot;macro action&quot; and &quot;micro actions&quot; allows:</P>
<UL>
<LI CLASS="Bullet1">
<A NAME="pgfId-1096826"></A>the flexibility of selecting the &quot;macro action element&quot; as the point for linking it to the existing artifacts, for example to a source file or to an AST, providing a meaningful source ref (a macro action can still represent one or more statements in the original existing system); and </LI>
<LI CLASS="Bullet1">
<A NAME="pgfId-1096827"></A>provides precise representation of the original &quot;macro action&quot; through a mapping to micro actions with predefined semantics. </LI>
</UL>
<P CLASS="Body">
<A NAME="pgfId-1096829"></A>Micro actions are the actual endpoints of the KDM relationships. The original &quot;macro action element&quot; (the one that owns the micro actions) aggregates these relationships through the uniform semantics of KDM aggregated relationships. The micro actions fit into the existing flow semantics, which makes it possible to use KDM representations for precise control and data flow analysis.</P>
<P CLASS="Body">
<A NAME="pgfId-1096831"></A>According to the &quot;encapsulated relationship pattern&quot; of KDM, each action element should own the ActionRelationships that originate from this action element. A KDM relationship originates from an element, if the &quot;from&quot; property of the relationship is equal to the identity of the element. The encapsulated relationship pattern is described in the Code KDM section. The collection of action relationships owned by an element is ordered. From the KDM perspective, the owned ActionRelationships represent the parameters to the action element.</P>
<P CLASS="Body">
<A NAME="pgfId-1096833"></A>Each micro KDM action has the following 5 parts.</P>
<P CLASS="Body">
<A NAME="pgfId-1096834"></A>Action Kind, Inputs, Outputs, Control and Extras</P>
<UL>
<LI CLASS="Bullet1">
<A NAME="pgfId-1096835"></A>Action Kind - is nature of the operation performed by the micro action. This is represented as a &quot;kind&quot; attribute to the micro action. The action kind may designate certain outgoing relationship as part of the Control. For example, the &quot;call&quot; micro action designated the Calls outgoing relationship as part of Control</LI>
<LI CLASS="Bullet1">
<A NAME="pgfId-1096836"></A>Outputs - represented by the owned outgoing Writes relationship, which usually represents the result of the micro action. This part is optional.</LI>
<LI CLASS="Bullet1">
<A NAME="pgfId-1096837"></A>Inputs - Ordered outgoing Reads and/or Addresses relationships that are owned by the action element, the order of the relationships represent the order of the arguments for a micro action.</LI>
<LI CLASS="Bullet1">
<A NAME="pgfId-1096838"></A>Control part - owned outgoing control flow relationships for the action. </LI>
<LI CLASS="Bullet1">
<A NAME="pgfId-1096839"></A>Extras part - owned relationships other than Reads, Writes and not designated as part of Control by the action Kind. For example, these can be interface compliance relation &quot;CompliesTo&quot; or any extended action relationships.</LI>
</UL>
<DIV>
<H6 CLASS="Heading4">
<A NAME="pgfId-1096843"></A>Constraints</H6>
<OL>
<LI CLASS="List1">
<A NAME="pgfId-1096844"></A>every leaf action element of the KDM model should be a micro KDM action, where the operation performed by the action is designated by the value of the action kind, specified in the list of the micro actions in Appendix 1.</LI>
<LI CLASS="List1-">
<A NAME="pgfId-1096845"></A>implementers shall capture the meaning of the existing artifacts as determined by the programming languages and runtime platform and map it into connected graphs of micro actions; the meaning of the resulting micro KDM model is determined by the semantics of the micro actions</LI>
</OL>
</DIV>
<DIV>
<H6 CLASS="Heading4">
<A NAME="pgfId-1096950"></A>Semantics</H6>
<P CLASS="Body">
<A NAME="pgfId-1096951"></A>Semantics of KDM micro actions is defined in Appendix 1. &quot;Semantics of the micro KDM action elements&quot;.</P>
</DIV>
<DIV>
<H6 CLASS="Heading4">
<A NAME="pgfId-1096955"></A>Example</H6>
<P CLASS="example">
<A NAME="pgfId-1097172"></A>z=1+f(x,y);</P>
<P CLASS="example">
<A NAME="pgfId-1097173"></A>*d[x+3]=1;</P>
<P CLASS="example">
<A NAME="pgfId-1097178"></A>d[y+3]=&amp;z;</P>
<P CLASS="example">
<A NAME="pgfId-1097179"></A>y=*d[x+3];</P>
<P CLASS="example">
<A NAME="pgfId-1097192"></A>&nbsp;</P>
<P CLASS="example">
<A NAME="pgfId-1097193"></A>function foo does not comply to micro KDM semantic constraints;</P>
<P CLASS="example">
<A NAME="pgfId-1097194"></A>function bar complies to micro KDM</P>
<P CLASS="example">
<A NAME="pgfId-1097195"></A>&nbsp;</P>
<P CLASS="example">
<A NAME="pgfId-1096961"></A>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1096962"></A>&lt;kdm:Segment </P>
<P CLASS="example">
<A NAME="pgfId-1097160"></A>	xmi:version=&quot;2.1&quot; </P>
<P CLASS="example">
<A NAME="pgfId-1097161"></A>	xmlns:xmi=&quot;http://www.omg.org/XMI&quot; </P>
<P CLASS="example">
<A NAME="pgfId-1097162"></A>	xmlns:action=&quot;http://kdm.omg.org/action&quot; </P>
<P CLASS="example">
<A NAME="pgfId-1097163"></A>	xmlns:code=&quot;http://kdm.omg.org/code&quot; </P>
<P CLASS="example">
<A NAME="pgfId-1097164"></A>	xmlns:kdm=&quot;http://kdm.omg.org/kdm&quot; name=&quot;Micro KDM Example&quot;&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1096963"></A>  &lt;model xmi:id=&quot;id.0&quot; xmi:type=&quot;code:CodeModel&quot;&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1096964"></A>    &lt;codeElement xmi:id=&quot;id.1&quot; xmi:type=&quot;code:CodeAssembly&quot;&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1096965"></A>      &lt;codeElement xmi:id=&quot;id.2&quot; xmi:type=&quot;code:CallableUnit&quot; name=&quot;foo&quot; kind=&quot;regular&quot;&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1096966"></A>        &lt;entryFlow xmi:id=&quot;id.3&quot; to=&quot;id.4&quot; from=&quot;id.2&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1096967"></A>        &lt;codeElement xmi:id=&quot;id.4&quot; xmi:type=&quot;action:ActionElement&quot; name=&quot;f1&quot; kind=&quot;unknown&quot;&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1096968"></A>          &lt;source xmi:id=&quot;id.5&quot; language=&quot;C&quot; snippet=&quot;z=1+f(x,y)&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1096969"></A>          &lt;actionRelation xmi:id=&quot;id.6&quot; xmi:type=&quot;action:Calls&quot; to=&quot;id.107&quot; from=&quot;id.4&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1096970"></A>          &lt;actionRelation xmi:id=&quot;id.7&quot; xmi:type=&quot;action:Reads&quot; to=&quot;id.97&quot; from=&quot;id.4&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1096971"></A>          &lt;actionRelation xmi:id=&quot;id.8&quot; xmi:type=&quot;action:Reads&quot; to=&quot;id.98&quot; from=&quot;id.4&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1096972"></A>          &lt;actionRelation xmi:id=&quot;id.9&quot; xmi:type=&quot;action:Writes&quot; to=&quot;id.99&quot; from=&quot;id.4&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1096973"></A>          &lt;actionRelation xmi:id=&quot;id.10&quot; xmi:type=&quot;action:Reads&quot; to=&quot;id.105&quot; from=&quot;id.4&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1096974"></A>          &lt;actionRelation xmi:id=&quot;id.11&quot; xmi:type=&quot;action:Flow&quot; from=&quot;id.4&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1096975"></A>        &lt;/codeElement&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1096976"></A>        &lt;codeElement xmi:id=&quot;id.12&quot; xmi:type=&quot;action:ActionElement&quot; name=&quot;f2&quot; kind=&quot;unknown&quot;&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1096977"></A>          &lt;source xmi:id=&quot;id.13&quot; language=&quot;C&quot; snippet=&quot;*d[x+3]=1;d[y+3]=&amp;amp;z;y=*d[x+3];&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1096978"></A>          &lt;actionRelation xmi:id=&quot;id.14&quot; xmi:type=&quot;action:Reads&quot; to=&quot;id.97&quot; from=&quot;id.12&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1096979"></A>          &lt;actionRelation xmi:id=&quot;id.15&quot; xmi:type=&quot;action:Addresses&quot; to=&quot;id.100&quot; from=&quot;id.12&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1096980"></A>          &lt;actionRelation xmi:id=&quot;id.16&quot; xmi:type=&quot;action:Reads&quot; to=&quot;id.106&quot; from=&quot;id.12&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1096981"></A>          &lt;actionRelation xmi:id=&quot;id.17&quot; xmi:type=&quot;action:Reads&quot; to=&quot;id.105&quot; from=&quot;id.12&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1096982"></A>          &lt;actionRelation xmi:id=&quot;id.18&quot; xmi:type=&quot;action:Addresses&quot; to=&quot;id.100&quot; from=&quot;id.12&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1096983"></A>          &lt;actionRelation xmi:id=&quot;id.19&quot; xmi:type=&quot;action:Reads&quot; to=&quot;id.98&quot; from=&quot;id.12&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1096984"></A>          &lt;actionRelation xmi:id=&quot;id.20&quot; xmi:type=&quot;action:Reads&quot; to=&quot;id.106&quot; from=&quot;id.12&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1096985"></A>          &lt;actionRelation xmi:id=&quot;id.21&quot; xmi:type=&quot;action:Addresses&quot; to=&quot;id.99&quot; from=&quot;id.12&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1096986"></A>          &lt;actionRelation xmi:id=&quot;id.22&quot; xmi:type=&quot;action:Writes&quot; to=&quot;id.98&quot; from=&quot;id.4&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1096987"></A>          &lt;actionRelation xmi:id=&quot;id.23&quot; xmi:type=&quot;action:Addresses&quot; to=&quot;id.100&quot; from=&quot;id.12&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1096988"></A>          &lt;actionRelation xmi:id=&quot;id.24&quot; xmi:type=&quot;action:Reads&quot; to=&quot;id.97&quot; from=&quot;id.12&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1096989"></A>          &lt;actionRelation xmi:id=&quot;id.25&quot; xmi:type=&quot;action:Reads&quot; to=&quot;id.106&quot; from=&quot;id.12&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1096990"></A>        &lt;/codeElement&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1096991"></A>      &lt;/codeElement&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1096992"></A>      &lt;codeElement xmi:id=&quot;id.26&quot; xmi:type=&quot;code:CallableUnit&quot; name=&quot;bar&quot; kind=&quot;regular&quot;&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1096993"></A>        &lt;entryFlow xmi:id=&quot;id.27&quot; to=&quot;id.28&quot; from=&quot;id.26&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1096994"></A>        &lt;codeElement xmi:id=&quot;id.28&quot; xmi:type=&quot;action:ActionElement&quot; name=&quot;b1&quot; kind=&quot;compound&quot;&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1096995"></A>          &lt;source xmi:id=&quot;id.29&quot; language=&quot;C&quot; snippet=&quot;z=1+f(x,y)&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1096996"></A>          &lt;codeElement xmi:id=&quot;id.30&quot; xmi:type=&quot;code:StorableUnit&quot; name=&quot;t1&quot; </P>
<P CLASS="example">
<A NAME="pgfId-1097165"></A>			type=&quot;id.112&quot; kind=&quot;register&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1096997"></A>          &lt;codeElement xmi:id=&quot;id.31&quot; xmi:type=&quot;action:ActionElement&quot; name=&quot;b1.1&quot; kind=&quot;Call&quot;&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1096998"></A>            &lt;actionRelation xmi:id=&quot;id.32&quot; xmi:type=&quot;action:Calls&quot; to=&quot;id.107&quot; from=&quot;id.28&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1096999"></A>            &lt;actionRelation xmi:id=&quot;id.33&quot; xmi:type=&quot;action:Reads&quot; to=&quot;id.97&quot; from=&quot;id.28&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097000"></A>            &lt;actionRelation xmi:id=&quot;id.34&quot; xmi:type=&quot;action:Reads&quot; to=&quot;id.98&quot; from=&quot;id.28&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097001"></A>            &lt;actionRelation xmi:id=&quot;id.35&quot; xmi:type=&quot;action:Writes&quot; to=&quot;id.30&quot; from=&quot;id.31&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097002"></A>            &lt;actionRelation xmi:id=&quot;id.36&quot; xmi:type=&quot;action:Flow&quot; from=&quot;id.31&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097003"></A>          &lt;/codeElement&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097004"></A>          &lt;codeElement xmi:id=&quot;id.37&quot; xmi:type=&quot;action:ActionElement&quot; name=&quot;b1.2&quot; kind=&quot;Add&quot;&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097005"></A>            &lt;actionRelation xmi:id=&quot;id.38&quot; xmi:type=&quot;action:Reads&quot; to=&quot;id.105&quot; from=&quot;id.37&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097006"></A>            &lt;actionRelation xmi:id=&quot;id.39&quot; xmi:type=&quot;action:Reads&quot; to=&quot;id.30&quot; from=&quot;id.37&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097007"></A>            &lt;actionRelation xmi:id=&quot;id.40&quot; xmi:type=&quot;action:Writes&quot; to=&quot;id.99&quot; from=&quot;id.37&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097008"></A>          &lt;/codeElement&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097009"></A>          &lt;actionRelation xmi:id=&quot;id.41&quot; xmi:type=&quot;action:Flow&quot; to=&quot;id.31&quot; from=&quot;id.28&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097010"></A>        &lt;/codeElement&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097011"></A>        &lt;codeElement xmi:id=&quot;id.42&quot; xmi:type=&quot;action:ActionElement&quot; name=&quot;b2&quot; kind=&quot;compound&quot;&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097012"></A>          &lt;source xmi:id=&quot;id.43&quot; language=&quot;C&quot; snippet=&quot;*d[x+3]=1;d[y+3]=&amp;amp;z;y=*d[x+3];&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097013"></A>          &lt;codeElement xmi:id=&quot;id.44&quot; xmi:type=&quot;code:StorableUnit&quot; name=&quot;t2&quot; </P>
<P CLASS="example">
<A NAME="pgfId-1097166"></A>			type=&quot;id.103&quot; kind=&quot;register&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097014"></A>          &lt;codeElement xmi:id=&quot;id.45&quot; xmi:type=&quot;code:StorableUnit&quot; name=&quot;t3&quot; </P>
<P CLASS="example">
<A NAME="pgfId-1097167"></A>			type=&quot;id.112&quot; kind=&quot;register&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097015"></A>          &lt;codeElement xmi:id=&quot;id.46&quot; xmi:type=&quot;code:StorableUnit&quot; name=&quot;t4&quot; </P>
<P CLASS="example">
<A NAME="pgfId-1097168"></A>			type=&quot;id.112&quot; kind=&quot;register&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097016"></A>          &lt;codeElement xmi:id=&quot;id.47&quot; xmi:type=&quot;code:StorableUnit&quot; name=&quot;t5&quot; </P>
<P CLASS="example">
<A NAME="pgfId-1097169"></A>			type=&quot;id.103&quot; kind=&quot;register&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097017"></A>          &lt;codeElement xmi:id=&quot;id.48&quot; xmi:type=&quot;code:StorableUnit&quot; name=&quot;t6&quot; </P>
<P CLASS="example">
<A NAME="pgfId-1097170"></A>			type=&quot;id.112&quot; kind=&quot;register&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097018"></A>          &lt;codeElement xmi:id=&quot;id.49&quot; xmi:type=&quot;code:StorableUnit&quot; name=&quot;t7&quot; </P>
<P CLASS="example">
<A NAME="pgfId-1097171"></A>			type=&quot;id.103&quot; kind=&quot;register&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097019"></A>          &lt;codeElement xmi:id=&quot;id.50&quot; xmi:type=&quot;action:ActionElement&quot; name=&quot;b2.1&quot; kind=&quot;Add&quot;&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097020"></A>            &lt;actionRelation xmi:id=&quot;id.51&quot; xmi:type=&quot;action:Reads&quot; to=&quot;id.97&quot; from=&quot;id.50&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097021"></A>            &lt;actionRelation xmi:id=&quot;id.52&quot; xmi:type=&quot;action:Reads&quot; to=&quot;id.106&quot; from=&quot;id.50&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097022"></A>            &lt;actionRelation xmi:id=&quot;id.53&quot; xmi:type=&quot;action:Writes&quot; to=&quot;id.44&quot; from=&quot;id.50&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097023"></A>            &lt;actionRelation xmi:id=&quot;id.54&quot; xmi:type=&quot;action:Flow&quot; to=&quot;id.55&quot; from=&quot;id.50&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097024"></A>          &lt;/codeElement&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097025"></A>          &lt;codeElement xmi:id=&quot;id.55&quot; xmi:type=&quot;action:ActionElement&quot; name=&quot;b2.2&quot; kind=&quot;ArraySelect&quot;&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097026"></A>            &lt;actionRelation xmi:id=&quot;id.56&quot; xmi:type=&quot;action:Addresses&quot; to=&quot;id.100&quot; from=&quot;id.55&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097027"></A>            &lt;actionRelation xmi:id=&quot;id.57&quot; xmi:type=&quot;action:Reads&quot; to=&quot;id.102&quot; from=&quot;id.55&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097028"></A>            &lt;actionRelation xmi:id=&quot;id.58&quot; xmi:type=&quot;action:Reads&quot; to=&quot;id.44&quot; from=&quot;id.55&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097029"></A>            &lt;actionRelation xmi:id=&quot;id.59&quot; xmi:type=&quot;action:Writes&quot; to=&quot;id.45&quot; from=&quot;id.55&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097030"></A>            &lt;actionRelation xmi:id=&quot;id.60&quot; xmi:type=&quot;action:Flow&quot; from=&quot;id.55&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097031"></A>          &lt;/codeElement&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097032"></A>          &lt;codeElement xmi:id=&quot;id.61&quot; xmi:type=&quot;action:ActionElement&quot; name=&quot;b2.3&quot; kind=&quot;PtrReplace&quot;&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097033"></A>            &lt;actionRelation xmi:id=&quot;id.62&quot; xmi:type=&quot;action:Reads&quot; to=&quot;id.45&quot; from=&quot;id.61&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097034"></A>            &lt;actionRelation xmi:id=&quot;id.63&quot; xmi:type=&quot;action:Reads&quot; to=&quot;id.105&quot; from=&quot;id.61&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097035"></A>            &lt;actionRelation xmi:id=&quot;id.64&quot; xmi:type=&quot;action:Writes&quot; to=&quot;id.104&quot; from=&quot;id.61&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097036"></A>            &lt;actionRelation xmi:id=&quot;id.65&quot; xmi:type=&quot;action:Flow&quot; to=&quot;id.66&quot; from=&quot;id.61&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097037"></A>          &lt;/codeElement&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097038"></A>          &lt;codeElement xmi:id=&quot;id.66&quot; xmi:type=&quot;action:ActionElement&quot; name=&quot;b2.4&quot; kind=&quot;Add&quot;&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097039"></A>            &lt;actionRelation xmi:id=&quot;id.67&quot; xmi:type=&quot;action:Reads&quot; to=&quot;id.98&quot; from=&quot;id.12&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097040"></A>            &lt;actionRelation xmi:id=&quot;id.68&quot; xmi:type=&quot;action:Reads&quot; to=&quot;id.106&quot; from=&quot;id.12&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097041"></A>            &lt;actionRelation xmi:id=&quot;id.69&quot; xmi:type=&quot;action:Writes&quot; to=&quot;id.46&quot; from=&quot;id.66&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097042"></A>            &lt;actionRelation xmi:id=&quot;id.70&quot; xmi:type=&quot;action:Flow&quot; to=&quot;id.71&quot; from=&quot;id.66&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097043"></A>          &lt;/codeElement&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097044"></A>          &lt;codeElement xmi:id=&quot;id.71&quot; xmi:type=&quot;action:ActionElement&quot; name=&quot;b2.5&quot; kind=&quot;Ptr&quot;&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097045"></A>            &lt;actionRelation xmi:id=&quot;id.72&quot; xmi:type=&quot;action:Addresses&quot; to=&quot;id.99&quot; from=&quot;id.12&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097046"></A>            &lt;actionRelation xmi:id=&quot;id.73&quot; xmi:type=&quot;action:Writes&quot; to=&quot;id.47&quot; from=&quot;id.71&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097047"></A>            &lt;actionRelation xmi:id=&quot;id.74&quot; xmi:type=&quot;action:Flow&quot; to=&quot;id.75&quot; from=&quot;id.71&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097048"></A>          &lt;/codeElement&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097049"></A>          &lt;codeElement xmi:id=&quot;id.75&quot; xmi:type=&quot;action:ActionElement&quot; name=&quot;b2.6&quot; kind=&quot;ArrayReplace&quot;&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097050"></A>            &lt;actionRelation xmi:id=&quot;id.76&quot; xmi:type=&quot;action:Addresses&quot; to=&quot;id.100&quot; from=&quot;id.12&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097051"></A>            &lt;actionRelation xmi:id=&quot;id.77&quot; xmi:type=&quot;action:Reads&quot; to=&quot;id.46&quot; from=&quot;id.75&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097052"></A>            &lt;actionRelation xmi:id=&quot;id.78&quot; xmi:type=&quot;action:Reads&quot; to=&quot;id.47&quot; from=&quot;id.75&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097053"></A>            &lt;actionRelation xmi:id=&quot;id.79&quot; xmi:type=&quot;action:Writes&quot; to=&quot;id.102&quot; from=&quot;id.75&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097054"></A>            &lt;actionRelation xmi:id=&quot;id.80&quot; xmi:type=&quot;action:Flow&quot; from=&quot;id.75&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097055"></A>          &lt;/codeElement&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097056"></A>          &lt;codeElement xmi:id=&quot;id.81&quot; xmi:type=&quot;action:ActionElement&quot; name=&quot;b2.7&quot; kind=&quot;Add&quot;&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097057"></A>            &lt;actionRelation xmi:id=&quot;id.82&quot; xmi:type=&quot;action:Reads&quot; to=&quot;id.97&quot; from=&quot;id.12&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097058"></A>            &lt;actionRelation xmi:id=&quot;id.83&quot; xmi:type=&quot;action:Reads&quot; to=&quot;id.106&quot; from=&quot;id.12&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097059"></A>            &lt;actionRelation xmi:id=&quot;id.84&quot; xmi:type=&quot;action:Writes&quot; to=&quot;id.48&quot; from=&quot;id.81&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097060"></A>            &lt;actionRelation xmi:id=&quot;id.85&quot; xmi:type=&quot;action:Flow&quot; from=&quot;id.81&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097061"></A>          &lt;/codeElement&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097062"></A>          &lt;codeElement xmi:id=&quot;id.86&quot; xmi:type=&quot;action:ActionElement&quot; name=&quot;b2.8&quot; kind=&quot;ArraySelect&quot;&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097063"></A>            &lt;actionRelation xmi:id=&quot;id.87&quot; xmi:type=&quot;action:Addresses&quot; to=&quot;id.100&quot; from=&quot;id.12&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097064"></A>            &lt;actionRelation xmi:id=&quot;id.88&quot; xmi:type=&quot;action:Reads&quot; to=&quot;id.48&quot; from=&quot;id.86&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097065"></A>            &lt;actionRelation xmi:id=&quot;id.89&quot; xmi:type=&quot;action:Reads&quot; to=&quot;id.102&quot; from=&quot;id.86&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097066"></A>            &lt;actionRelation xmi:id=&quot;id.90&quot; xmi:type=&quot;action:Writes&quot; to=&quot;id.49&quot; from=&quot;id.86&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097067"></A>            &lt;actionRelation xmi:id=&quot;id.91&quot; xmi:type=&quot;action:Flow&quot; to=&quot;id.92&quot; from=&quot;id.86&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097068"></A>          &lt;/codeElement&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097069"></A>          &lt;codeElement xmi:id=&quot;id.92&quot; xmi:type=&quot;action:ActionElement&quot; name=&quot;b2.9&quot; kind=&quot;PtrSelect&quot;&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097070"></A>            &lt;actionRelation xmi:id=&quot;id.93&quot; xmi:type=&quot;action:Reads&quot; to=&quot;id.49&quot; from=&quot;id.92&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097071"></A>            &lt;actionRelation xmi:id=&quot;id.94&quot; xmi:type=&quot;action:Reads&quot; to=&quot;id.104&quot; from=&quot;id.92&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097072"></A>            &lt;actionRelation xmi:id=&quot;id.95&quot; xmi:type=&quot;action:Writes&quot; to=&quot;id.98&quot; from=&quot;id.92&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097073"></A>          &lt;/codeElement&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097074"></A>          &lt;actionRelation xmi:id=&quot;id.96&quot; xmi:type=&quot;action:Flow&quot; to=&quot;id.50&quot; from=&quot;id.42&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097075"></A>        &lt;/codeElement&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097076"></A>      &lt;/codeElement&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097077"></A>      &lt;codeElement xmi:id=&quot;id.97&quot; xmi:type=&quot;code:StorableUnit&quot; name=&quot;x&quot; type=&quot;id.112&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097078"></A>      &lt;codeElement xmi:id=&quot;id.98&quot; xmi:type=&quot;code:StorableUnit&quot; name=&quot;y&quot; type=&quot;id.112&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097079"></A>      &lt;codeElement xmi:id=&quot;id.99&quot; xmi:type=&quot;code:StorableUnit&quot; name=&quot;z&quot; type=&quot;id.112&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097080"></A>      &lt;codeElement xmi:id=&quot;id.100&quot; xmi:type=&quot;code:StorableUnit&quot; name=&quot;d&quot; type=&quot;id.101&quot;&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097081"></A>        &lt;codeElement xmi:id=&quot;id.101&quot; xmi:type=&quot;code:ArrayType&quot; name=&quot;&quot;&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097082"></A>          &lt;itemUnit xmi:id=&quot;id.102&quot; name=&quot;d[]&quot; type=&quot;id.103&quot;&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097083"></A>            &lt;codeElement xmi:id=&quot;id.103&quot; xmi:type=&quot;code:PointerType&quot;&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097084"></A>              &lt;itemUnit xmi:id=&quot;id.104&quot; name=&quot;*d[]&quot; type=&quot;id.112&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097085"></A>            &lt;/codeElement&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097086"></A>          &lt;/itemUnit&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097087"></A>        &lt;/codeElement&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097088"></A>      &lt;/codeElement&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097089"></A>      &lt;codeElement xmi:id=&quot;id.105&quot; xmi:type=&quot;code:Value&quot; name=&quot;1&quot; type=&quot;id.112&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097090"></A>      &lt;codeElement xmi:id=&quot;id.106&quot; xmi:type=&quot;code:Value&quot; name=&quot;3&quot; type=&quot;id.112&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097091"></A>      &lt;codeElement xmi:id=&quot;id.107&quot; xmi:type=&quot;code:CallableUnit&quot; name=&quot;f&quot; type=&quot;id.108&quot;&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097092"></A>        &lt;codeElement xmi:id=&quot;id.108&quot; xmi:type=&quot;code:Signature&quot;&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097093"></A>          &lt;parameterUnit xmi:id=&quot;id.109&quot; name=&quot;a&quot; type=&quot;id.112&quot; pos=&quot;1&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097094"></A>          &lt;parameterUnit xmi:id=&quot;id.110&quot; name=&quot;b&quot; type=&quot;id.112&quot; pos=&quot;2&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097095"></A>          &lt;parameterUnit xmi:id=&quot;id.111&quot; type=&quot;id.112&quot; kind=&quot;return&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097096"></A>        &lt;/codeElement&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097097"></A>      &lt;/codeElement&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097098"></A>    &lt;/codeElement&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097099"></A>    &lt;codeElement xmi:id=&quot;id.112&quot; xmi:type=&quot;code:IntegerType&quot; name=&quot;int&quot;/&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097100"></A>  &lt;/model&gt;</P>
<P CLASS="example">
<A NAME="pgfId-1097101"></A>&lt;/kdm:Segment&gt;</P>
<P CLASS="Body">
<A NAME="pgfId-1096812"></A>&nbsp;</P>
<P CLASS="Body">
<A NAME="pgfId-1088609"></A>&nbsp;</P>
</DIV>
</DIV>
</BODY>
</HTML>
